<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:composite="http://java.sun.com/jsf/composite">
 <h:head><title></title></h:head>
 <h:body>
 
 	<composite:interface>
 		<composite:attribute name="title"/>
 		<composite:attribute name="listMenu"/>
 	</composite:interface>
 	<composite:implementation>
 		<div id="sidebar">
							
					
			
			<h:form>
			<h2>#{cc.attrs.title}</h2>
			<ul class="sidemenu">
							
				<ui:repeat var="elementMenu" value="#{cc.attrs.listMenu}">
					<li><h:commandLink action="#{principalController.invocarMetodo}" >
					<f:param name="id" value="#{elementMenu.id}"> </f:param>
					<f:param name="metodo" value="#{elementMenu.metodo}"></f:param>				
					<f:param name="controller" value="#{elementMenu.controller}"></f:param>
					<f:param name="controllerClass" value="#{elementMenu.controllerClass}"></f:param>
					<f:param name="result" value="#{elementMenu.result}"></f:param>
					#{elementMenu.name}</h:commandLink></li>
					
				</ui:repeat>
				
			</ul>
			</h:form>
		</div>
 	
 	</composite:implementation>
 
 </h:body>  
    
</html>